﻿CREATE FUNCTION [util].[GetServerProperty]
(@Config SMALLINT)
RETURNS INT
AS
BEGIN
	DECLARE @ReturnValue int

	SELECT @ReturnValue = [value]
	FROM master.dbo.sysconfigures
	WHERE ([config] = @Config)

	RETURN(@ReturnValue)
END